package com.langsin.bean;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@ToString
public class Orders {
    private Integer orderId;

    private Integer userId;

    private Double price;

    private Date orderDate;

    private Byte payment;

    //关联对应的一个 用户，也就是 外键的主体
    private User user;

    //关联多的一方
    private List<OrderDetail> orderDetailList;




}